package com.curry.livehelper.entity.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;


/**
 * <p>
 * <p>
 * </p>
 *
 * @author
 * @since 2017-11-07
 */
@TableName("t_quartz_info")
public class TQuartzInfo extends Model<TQuartzInfo> {

    private static final long serialVersionUID = 1L;
    @NotEmpty(message = "定时器分组不能为空")
    private String groupName;
    @NotEmpty(message = "定时器类名不能为空")
    private String className;
    @NotEmpty(message = "定时器执行周期时间不能为空")
    private String cronExpress;
    private String status;
    @NotEmpty(message = "定时器名不能为空")
    private String taskDescript;
    private Integer id;
    private String createTime;
    @NotEmpty(message = "定时器执行方法不能为空")
    private String methodName;
    private String description;
    @NotEmpty(message = "任务类别不能为空")
    private String taskTag;
    @NotEmpty(message = "定时器大类别不能为空")
    private String groupTag;

    public String getGroupTag() {
        return groupTag;
    }

    public void setGroupTag(String groupTag) {
        this.groupTag = groupTag;
    }

    public String getTaskTag() {
        return taskTag;
    }

    public void setTaskTag(String taskTag) {
        this.taskTag = taskTag;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getCronExpress() {
        return cronExpress;
    }

    public void setCronExpress(String cronExpress) {
        this.cronExpress = cronExpress;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getTaskDescript() {
        return taskDescript;
    }

    public void setTaskDescript(String taskDescript) {
        this.taskDescript = taskDescript;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TQuartzInfo{" +
                "groupName='" + groupName + '\'' +
                ", className='" + className + '\'' +
                ", cronExpress='" + cronExpress + '\'' +
                ", status='" + status + '\'' +
                ", taskDescript='" + taskDescript + '\'' +
                ", id=" + id +
                ", createTime='" + createTime + '\'' +
                ", methodName='" + methodName + '\'' +
                ", description='" + description + '\'' +
                ", taskTag='" + taskTag + '\'' +
                ", groupTag='" + groupTag + '\'' +
                '}';
    }
}
